﻿#ifndef _CONFIRM_H
#define _CONFIRM_H

#include <QDialog>
#include <QMouseEvent>
#include <QPainter>
#include <QtMath>
#include "ui_confirm.h"

class Confirm : public QDialog {
	Q_OBJECT

public:
	Confirm(QWidget * parent = 0);
	~Confirm();
	void setText(QString text);
	public Q_SLOTS:
	void on_pbSure_clicked();
	void on_pbCancel_clicked();
	void on_pbClose_clicked();
protected:
	virtual void mouseMoveEvent(QMouseEvent* event);
	virtual void mousePressEvent(QMouseEvent* event);
	virtual void mouseReleaseEvent(QMouseEvent* event);
	virtual void keyPressEvent(QKeyEvent* event);
	void paintEvent(QPaintEvent *event);
Q_SIGNALS:
	void confirmOKSignal();
private:
	Ui::Confirm ui;
	bool m_isPressed;
	QPoint m_startMovePos;

};

#endif // _CONFIRM_H
